package com.tencreat.service.pt;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.common.core.domain.model.ReqIdsParam;
import com.tencreat.domain.pt.MallPtUsers;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 拼团详情Service接口
 *
 * @author tencreat
 * @date 2021-11-08
 */
public interface IMallPtUsersService extends IService<MallPtUsers> {
    /**
     * 查询拼团详情
     *
     * @param id 拼团详情ID
     * @return 拼团详情
     */
    public MallPtUsers selectMallPtUsersById(ReqIdParam id);

    /**
     * 查询拼团详情列表
     *
     * @param mallPtUsers 拼团详情
     * @return 拼团详情集合
     */
    public List<MallPtUsers> selectMallPtUsersList(MallPtUsers mallPtUsers);

    /**
     * 新增拼团详情
     *
     * @param mallPtUsers 拼团详情
     * @return 结果
     */
    public int insertMallPtUsers(MallPtUsers mallPtUsers);

    /**
     * 修改拼团详情
     *
     * @param mallPtUsers 拼团详情
     * @return 结果
     */
    public int updateMallPtUsers(MallPtUsers mallPtUsers);

    /**
     * 批量删除拼团详情
     *
     * @param ids 需要删除的拼团详情ID
     * @return 结果
     */
    public int deleteMallPtUsersByIds(ReqIdsParam ids);

    /**
     * 删除拼团详情信息
     *
     * @param id 拼团详情ID
     * @return 结果
     */
    public int deleteMallPtUsersById(ReqIdParam id);

    Page<Map<String, Object>> lotteryUsersList(Page<Map<String, Object>> page, Integer ptId, Long uuid, String phone, Integer type);

    Page<Map<String, Object>> ptHistoricalRecord(Page<Map<String, Object>> page, Integer goodsId, Date time, Integer period);

    Page<Map<String, Object>> ptDetail(Page<Map<String, Object>> page, Integer ptId);

    Map<String, Object> lotteryDetailInfo(Integer ptId);
}
